﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;

namespace XSocketServerLib
{
    class Program
    {
        static void Main(string[] args)
        {
            
            Log2Txt l = new Log2Txt();
            XSocketServer sock = new XSocketServer(2010, IPAddress.Parse("192.168.0.100"));
            sock.Configuration.AllowMutipleConnection = true;
            sock.XSocketRecive += new XSocketServer.XSocketReciveHandler(sock_XSocketRecive);

          

            sock.Start();
            
            Console.ReadLine();

           
            sock.ShutDown();
        }

        static void sock_XSocketRecive(object sender, XSocketReciveEventArgs args)
        {
            Console.WriteLine("{0}   {1}",args.Name, args.Data);
            XSocketServer ser = sender as XSocketServer;
          
        }
    }
}
